package cn.wolfcode.trip.base.service;


import cn.wolfcode.trip.base.domain.Product;
import cn.wolfcode.trip.base.query.ProductQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IProductService {
    PageInfo<Product> query(QueryObject qo);

    void saveOrUpdate(Product product);

    void delete(Long id);

    /**
     * 根据商品id获取商品内容
     * @param productId
     * @return
     */
    Product selectProductById(Long productId);

    /**
     * 根据商品分类获取商品明细
     * @param qo
     * @return
     */
    PageInfo<Product> query(ProductQueryObject qo);
}
